package thread.basic;

public class Demo05_Sleep {
    public static void main(String[] args) {
        for (int i = 20; i > 0; i--) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("倒计时" + i + "s");
        }
    }
}
